//
//  NewsTitle.m
//  19---JSON训练
//
//  Created by 冀永金 on 16/8/9.
//  Copyright © 2016年 冀永金. All rights reserved.
//

#import "NewsTitle.h"

@implementation NewsTitle
- (instancetype)initWithNews:(NSDictionary *)dic {
    self = [super init];
    if (self) {
        [self setValuesForKeysWithDictionary:dic];
    }
    return self;
}
+(instancetype)newsWithDic:(NSDictionary *)dic {
    return [[self alloc]initWithNews:dic];
}


-(void)setValue:(id)value forUndefinedKey:(NSString *)key {
    if ([key isEqualToString:@"template"]) {
        self.news_template = value;
        
    }
}
- (id)valueForKey:(NSString *)key  {
    return nil;
}
@end
